package com.example.test.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Demo {


    public static void  main(String[] args) throws ParseException {

        StringBuffer sb = new StringBuffer();
        sb.append("1");
        System.out.println(sb);
        Map<String,String> lineMap = new HashMap<>();
        lineMap.put("1","一路车");
        System.out.println(lineMap);
        System.out.println(lineMap.get("1"));
        Long id = 1L;
        System.out.println(id.toString());

//        Date date = new Date();
//        String nowDate = date.toString();
//        System.out.println(nowDate);
//        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//        String newDate = simpleDateFormat.format(date);
//        System.out.println(newDate);
//
//        String d = "2024-04-21 16:04:13";
//        Date dateNew = simpleDateFormat.parse(d);
//        long time = dateNew.getTime();
//        System.out.println(time);
//
//        System.out.println(new Date(time));
//        String sDate = simpleDateFormat.format(new Date(time));
//        System.out.println(sDate);
//
//        String str = "abcd";
//        System.out.println(str.length());
//        System.out.println(str.charAt(0));
//        System.out.println(str.replaceAll("a","hhhh")==str);
//        StringBuffer sb = new StringBuffer("abcd");
//        System.out.println(sb.append("efg")==sb);
//        System.out.println(sb.length());
//        System.out.println(sb.reverse());

    }



}
